package com.nuo.backend.common.threadlocal;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;


/**
 * @description: TODO 认证签到后无需重复认证
 * @author nuo
 * @date 2022/11/17 9:03
 * @version 1.0
 */
@Component
public class RequestBodyThreadLocal {

    private static final ThreadLocal<JSONObject> threadLocal = new ThreadLocal<>();


    public void set(JSONObject jsonObject) {
        threadLocal.set(jsonObject);
    }

    public JSONObject get() {
        return threadLocal.get();
    }

    public void remove() {
        threadLocal.remove();
    }


}
